<?php
namespace app\admin\controller;
use app\admin\controller\Main;
use think\Controller;
use app\admin\controller\Login;
use think\Session;
class Index extends Controller
{
    public function index()
    {

        return view('login/login');
    }
    public function welcome()
    {
    	return view('index/welcome');
    }

    public function main()
    {   

        if(Session::get('admin_username')!='admin'){
            $login = new Login();
            $login->nodeSession();
        }
        
    	return view('index/index');
    }
}
